import vueRouter from 'vue-router'

import home from'../components/Home.vue'
import member from'../components/Member.vue'
import cart from'../components/Cart.vue'
import search from'../components/Search.vue'


var router = new vueRouter({
    routes: [
        {path:'/',redirect:'/home'},
        {path:'/home',component:home},
        {path:'/member',component:member},
        {path:'/cart',component:cart},
        {path:'/search',component:search}
    ],
    // 此处是设置路由选中时，添加上的样式类名
    linkActiveClass:'mui-active'
})


export default router